package com.hxl.tech.gateway.auth.dto;


import lombok.Data;

@Data
public class PageInfo  {

    private Integer pageNumber;

    private Integer pageSize;

    private Integer totalPage;

    private Long totalCount;

    public Integer limit(){
        return pageSize;
    }

    public Long offset(){
        return ((long) (pageNumber - 1) * pageSize);
    }

}
